package com.xzx.annotation.profile;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author xinzhixuan
 * @version 1.0
 * @date 2025/4/21 09:40
 */
@Slf4j
public class ProfileTest {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(ProfileConfig.class);
        for (String name : context.getBeanDefinitionNames()) {
            log.info("=========bean name:{}====>type:{}", name, context.getBean(name).getClass());
        }
    }
}
